﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Web;
using System.Web.Mvc;
using System.Web.Optimization;
using System.Web.Routing;
using CoralNode.MvcClient;

namespace Gongfu
{

    public class Global : CoralNodeMvcApplication
    {
        protected override void InitApplicationStart()
        {
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            Assemblies.Add(Assembly.Load("Gongfu"));
            base.InitApplicationStart();
            Container.Install(new WebClientInstaller());
        }

        protected new void Application_PreSendRequestHeaders()
        {
            Response.Headers.Remove("Server");
            Response.Headers.Remove("X-AspNet-Version");
            Response.Headers.Remove("X-AspNetMvc-Version");
        }
    }
    
}
